/*
 * This file is part of ksPlatform
 * 
 * Copyright (c) 2014-2015
 * 
 * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) 
 * 
 * If you are unsure which license is appropriate for your use, please contact the sales department
 * at 97041437@qq.com.
 */

package cn.com.ksplatform.modules.system.auth.orgmanager.service;

import javax.transaction.Transactional;

import org.springframework.stereotype.Repository;

import cn.com.ksplatform.base.service.BaseService;
import cn.com.ksplatform.modules.system.auth.orgmanager.model.PlatOrg;

/**
 * ClassName:PlatOrgService <br/>
 * Date: 2015年5月8日 下午4:28:49 <br/>
 * 
 * @author Mr.Luoxing
 * @version 1.0
 */
@Repository("system.modules.system.PlatOrgService")
public class PlatOrgService extends BaseService {

	@Transactional
	public PlatOrg save(PlatOrg org) {
		String id = org.save();
		org.setOrgId(id);
		return org;
	}

	@Transactional
	public PlatOrg update(PlatOrg org) {
		return org.update();
	}

	@Transactional
	public PlatOrg delete(PlatOrg org) {
		return org.delete();
	}

	@Transactional
	public PlatOrg saveOrUpdate(PlatOrg org) {
		return org.saveOrUpdate();
	}

}
